/*
 * @Description: 我的接口
 * @Author: XuYang 
 * @Date: 2019-06-09 12:45:51 
 * @Last Modified by: XuYang
 * @Last Modified time: 2019-06-14 23:56:41
 */

import { AjaxServer } from './index';

/**
 * 修改手机号
 * @param {*} params 
 */
export async function changeMobileApi(token, params){
    return AjaxServer('put', '/v1/user/changeMobile', null, {}, params);
}
/**
 * 修改密码
 * @param {*} params 
 */
export async function changePasswordApi(token, params){
    return AjaxServer('put', '/v1/login/changepwd', token, {}, params);
}
/**
 * 获取用户信息
 * @param {*} params 
 */
export async function getUserInfoApi(token, params){
    return AjaxServer('get', '/v1/user/uinfo', token, params);
}
/**
 * 公告列表
 * @param {*} token 
 */
export async function getNoticeListApi(token){
    return AjaxServer('get', '/v1/user/nlist', token);
}
/**
 * 公告详情
 * @param {*} token 
 */
export async function getNoticeDetailApi(token,params){
    return AjaxServer('get', '/v1/user/ndetail', token,params);
}